package com.swp.oa.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.swp.oa.sys.pojo.LoginState;
import com.swp.oa.sys.pojo.LoginStateExample;

public interface ILoginStateDao {
    int countByExample(LoginStateExample example);

    int deleteByExample(LoginStateExample example);

    int deleteByPrimaryKey(String loginstateid);

    int insert(LoginState record);

    int insertSelective(LoginState record);

    List<LoginState> selectByExample(LoginStateExample example);

    LoginState selectByPrimaryKey(String loginstateid);

    int updateByExampleSelective(@Param("record") LoginState record, @Param("example") LoginStateExample example);

    int updateByExample(@Param("record") LoginState record, @Param("example") LoginStateExample example);

    int updateByPrimaryKeySelective(LoginState record);

    int updateByPrimaryKey(LoginState record);
    
    LoginState selectByUserId(String userid);
    
    LoginState selectByToken(String token);
    
    int deleteByToken(String token);
}